package people.paper.tv.activity.home.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.List;

public class MainDataObject {
    public static class RMRBObject implements Serializable {
        @JSONField(serialize = false)
        public int indexOfLayout;
        @JSONField(serialize = false)
        public int indexInLayout;
        @JSONField(serialize = false)
        public int index;
        @JSONField(serialize = false)
        public int talking;
        public String date;  //日期
        public String layoutId; // 版面Id
        public String layoutName;  //版面名称
        public String bigPicture;  //大图片url
        public String littlePicture; // 小图片url
        public String newsId;  // 新闻Id
        public String title; // 标题
    }

    //{"obj":[{"bigPicture":"http://localhost:8080/peopleln/excel/2018-06-24/2018-06-24/01/rmrb2018062401.jpg","date":"2018-06-24","layoutId":"01","layoutName":"要闻","littlePicture":"http://localhost:8080/peopleln/excel/2018-06-24/2018-06-24/01/rmrb2018062401_i.jpg","newsId":"1","title":"前5月国企利润同比增长20.9%"},{"bigPicture":"http://localhost:8080/peopleln/excel/2018-06-24/2018-06-24/01/rmrb2018062401.jpg","date":"2018-06-24","layoutId":"01","layoutName":"要闻","littlePicture":"http://localhost:8080/peopleln/excel/2018-06-24/2018-06-24/01/rmrb2018062401_i.jpg","newsId":"2","title":"习近平外交思想是新时代中国特色大国外交的根本遵循和行动指南"}]
    public static class RMRBData implements Serializable {
        public List<RMRBObject> obj;
        public boolean success = false;
    }

    public static class RMRBContentObject implements Serializable {
        public String content;
    }

    public static class RMRBContentData implements Serializable {
        public List<RMRBContentObject> obj;
        public boolean success = false;
    }


    public static class SPTTData implements Serializable {
        public List<SPTTObject> obj;
        public boolean success = false;
        public int total;
    }

    public static class SPTTObject implements Serializable {
        @JSONField(serialize = false)
        public int index;

        /**
         * The Symbol.
         * 横屏值为0，竖屏值为1
         */
        public static final String LANDSCAPE = "0";
        public static final String PORTRAIT = "1";
        public String symbol = LANDSCAPE;
        public String videoTitle;
        public String videoUrl;
    }

    public static class YWYLData implements Serializable {
        public List<YWYLObject> obj;
        public int total;
    }

    public static class YWYLObject implements Serializable {
        public int id;
        public String file_name;
        public String type;
        public String path;
        public String url;
    }
}
